package net.sunxiaolong.tool.captureinsureknowledge.repository;

import net.sunxiaolong.tool.captureinsureknowledge.entity.CpicKnowledge;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 晓龙
 * @create 2018-08-07 下午3:19
 * @desc
 **/
@Repository
public interface CpicKnowledgeRepository extends CrudRepository<CpicKnowledge, Long> {

    @Query("SELECT k FROM CpicKnowledge k")
    List<CpicKnowledge> getAllData();
}
